import {
	httpGet,
	httpPost,
	httpRequest
} from "../../http/http.js"


// 登录接口
const login = (data) => httpPost("/user/login", data = data)

// 注册接口
const register = (data) => httpPost("/user/register", data = data)

// 获取用户个人信息
const getUserInfo = () => httpGet("/user/getUserInfo")

// 修改个人信息
const editSelfInfo = (data) => httpPost("/user/editSelfInfo", data = data)

// 检查用户名是否可用
const checkUsernameCanUse = (data) => httpGet("/user/checkUsernameCanUse", data = data)

export default {
	login,
	register,
	getUserInfo,
	editSelfInfo,
	checkUsernameCanUse,
}